﻿@using Region=Ext.Net.Region

@{
    ViewBag.Title = "Portal - Ext.NET Examples";
    Layout = "~/Views/Shared/_BaseLayoutNoMgr.cshtml";
    var X = Html.X();
}

@section headtag
{
    
}

@section example
{
    @Html.X().ResourceManager(this.ViewBag.ManagerConfig as MvcResourceManagerConfig).Theme(Theme.Gray)
    @(Html.X().Viewport()
        .Layout(LayoutType.VBox)
        .LayoutConfig(
            new VBoxLayoutConfig { Align = VBoxAlign.Stretch }
        )
        .Listeners(l => {
            l.AfterLayout.BroadcastOnBus = "App.resize";
            l.AfterLayout.Single = true;
        })
        .Items(regions =>
        {
            regions.Add(Html.X().Portal()
                    .Border(false)
                    .Flex(1)
                    .ItemsFromPartial("MainPortals")
                );
        }
        )
    )
}